Grub2: use /etc/system-release now that we have one
authorGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 14 Sep 2012 21:57:20 +0000 (23:57 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 16 Sep 2012 22:25:30 +0000 (00:25 +0200)
This matches the upstream code more, and avoids the GNOME OS trademark
in ostree, which is otherwise platform agnostic.

https://bugzilla.gnome.org/show_bug.cgi?id=684049

src/ostree/grub2/15_ostree

index 6f9d51bb27e052c33162738dedb772a260d89952..14394d61bf6a0a4f10db6ff17941244e74d6c8b2 100755 (executable)
@@ -27,7 +27,7 @@ export TEXTDOMAIN=grub
 export TEXTDOMAINDIR="${datarootdir}/locale"
 
 CLASS="--class gnu-linux --class gnu --class os --class ostree"
-OS="GNOME OS (Ostree)"
+OS="$(cat /ostree/current-etc/system-release)"
 
 # loop-AES arranges things so that /dev/loop/X can be our root device, but
 # the initrds that Linux uses don't like that.